package com.jar.myfourthapp;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.widget.TextView;

public class tabslayout extends AppCompatActivity {
    private TextView textZDY;

    @Override

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.tabslayout);
        TextView textZDY = findViewById(R.id.textZDY);
        String s1 = "<font color='blue'><b>百度一下,你就知道~:</b></font><br>";
        s1 += "<a href='http://www.baidu.com'>百度</a>";
        textZDY.setText(Html.fromHtml(s1));
        textZDY.setMovementMethod(LinkMovementMethod.getInstance());

    }
}
